package global

import (
	"gorm.io/gorm"
	"time"
)

type Model struct {
	ID        uint           `json:"id" gorm:"primarykey"` // 主键ID
	CreatedAt time.Time      `json:"create_at" gorm:"type:datetime; size:0; comment:创建时间"` // 创建时间
	UpdatedAt time.Time      `json:"update_at" gorm:"type:datetime; size:0; comment:更新时间"` // 更新时间
	DeletedAt gorm.DeletedAt `json:"delete_at" gorm:"type:datetime; size:0; index" json:"-"` // 删除时间
}
